package cn.yyh.serviceProduct.service;

import cn.yyh.commons.service.MyBaseService;
import cn.yyh.commons.utils.BaseQuery;
import cn.yyh.commons.utils.PageInfo;
import cn.yyh.serviceProduct.domain.Product;
import cn.yyh.serviceProduct.query.ProductQuery;

import java.util.List;

/**
 * @author 杨永航
 * @version 1.0
 * @Title: ProductService
 * @Package: cn.yyh.serviceProduct.service
 * @date 2021/7/12
 */
public interface ProductService extends MyBaseService<Product> {
    PageInfo<Product> pageQuery(ProductQuery query, Long id, String token);

    @Override
    void delete(Long id);

    @Override
    void deleteBatch(List<Long> ids);


    void save(Product product, Long id, String token);


    void update(Product product, Long id, String token);

    void onSale(List<Long> ids);

    void offSale(List<Long> ids);
}
